import tesserocr
from PIL import Image
# image = Image.open('/Users/bruce/Downloads/image.png') 
# print(tesserocr.image_to_text(image))
# 图片数字识别

print(tesserocr.file_to_text('/Users/bruce/Downloads/image.png'))